package com.kaili.basic.service.impl;


        import com.kaili.basic.mapper.DeviceMapper;
        import com.kaili.basic.mapper.DeviceSignMapper;
        import com.kaili.basic.pojo.dto.DeviceSumDTO;
        import com.kaili.basic.pojo.vo.DeviceSumVO;
        import com.kaili.basic.service.IIndexService;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.stereotype.Service;

        import java.util.ArrayList;
        import java.util.List;

/**
 * @Desc: 设备信息汇总实现类
 * @author: zhouyijian
 * @Time: 2019/8/1 9:35
 * @Copyright: © 2018 杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Service
public class IndexServiceImpl implements IIndexService {

    @Autowired
    private DeviceMapper deviceMapper;

    @Autowired
    private DeviceSignMapper deviceSignMapper;

    @Override
    public List<DeviceSumVO> queryDeviceSumList(DeviceSumDTO dto) {
        //设备总数
        int deviceTotal =deviceMapper.getDeviceTotal();
        //在线设备
        int deviceOnLineTotal =deviceSignMapper.getDeviceOnlineTotal();
        //脱离管控设备
        int deviceOutControllerTotal =deviceMapper.getDeviceOutController(dto);
        //告警设备
        int deviceWarnTotal =deviceMapper.getDeviceWarnTotal();
        return new ArrayList<>();
    }
}
